<?php


namespace common\behavior;

use common\service\TaskMemberService;

/**
 * 删除工单用户
 */
class UpdateWorkOrderUserDeletedBehavior
{

    public function run($params)
    {
        $data = [
            'user_id' => $params['del'],
            'task_work_order_id' => $params['work_order_id'],
            'type' => 'delete',
        ];
        APP_DEBUG && trace(var_export($data, true), 'DEBUG');
        TaskMemberService::getInstance()->taskWorkOrderDeleted($data['user_id'], $data['task_work_order_id']);
    }
}
